<?php 
$scripts = $header['scripts'];
$title = $header['title'];
?>
<!DOCTYPE HTML>
<html>
<head>
<title><?php echo $title ?></title>
<?php 
	if(!empty($scripts)){
		if(!empty($scripts['js'])){
			foreach($scripts['js'] as $scriptUrl){
				echo script_tag($scriptUrl);
			}
		}
		
		if(!empty($scripts['css'])){
			foreach($scripts['css'] as $cssScript){
				echo link_tag($cssScript['url'], 'stylesheet', 'text/css', '', $cssScript['media']);
			}
		}
		
	}
?>
</head>
<body>
	